<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <div th:replace="config :: copy"></div>
</head>
<body>
<script>
    layer.open({
        content: '操作失败'
        ,btn: ['确定']
        ,yes: function(index, layero){
            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            parent.layer.close(index); //再执行关闭
            parent.location.reload();
        },
        cancel: function(){
            //右上角关闭回调
            return false //开启该代码可禁止点击该按钮关闭
        }
    });
</script>
</body>
</html>